package com.ruoyi.project.jiaqin.wanttobuycollect.mapper;

import com.ruoyi.project.jiaqin.wanttobuycollect.domain.WantToBuyCollect;

import java.util.List;

/**
 * 求购收藏Mapper接口
 * 
 * @author LCL
 * @date 2021-10-22
 */
public interface WantToBuyCollectMapper 
{
    /**
     * 查询求购收藏
     * 
     * @param id 求购收藏ID
     * @return 求购收藏
     */
    public WantToBuyCollect selectWantToBuyCollectById(String id);

    /**
     * 查询求购收藏列表
     * 
     * @param wantToBuyCollect 求购收藏
     * @return 求购收藏集合
     */
    public List<WantToBuyCollect> selectWantToBuyCollectList(WantToBuyCollect wantToBuyCollect);

    /**
     * 新增求购收藏
     * 
     * @param wantToBuyCollect 求购收藏
     * @return 结果
     */
    public int insertWantToBuyCollect(WantToBuyCollect wantToBuyCollect);

    /**
     * 修改求购收藏
     * 
     * @param wantToBuyCollect 求购收藏
     * @return 结果
     */
    public int updateWantToBuyCollect(WantToBuyCollect wantToBuyCollect);

    /**
     * 删除求购收藏
     * 
     * @param id 求购收藏ID
     * @return 结果
     */
    public int deleteWantToBuyCollectById(String id);

    /**
     * 批量删除求购收藏
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWantToBuyCollectByIds(String[] ids);

    public WantToBuyCollect selectBuyCollectByMemberIdAndToWantToBuyId(String memberId, String toWantToBuyId);

    public List<WantToBuyCollect> selectWantToBuyCollectByMemberId(String memberId);

}
